﻿Imports System.Data
Imports System.Data.SqlClient
Imports System.Configuration

Public Class Conexion
    Dim conexion As SqlConnection

    Public Function Conectar() As SqlConnection
        conexion = New SqlConnection _
        (ConfigurationManager.ConnectionStrings("Conexion"). _
         ConnectionString)
        Return conexion
    End Function

End Class
